﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Medianamik.Core.ImportExport
{
    public class Medianamik2NodeDataSource: NodeDataSource<Node, NodeInstance , NodeProperty >  
    {
        public NodeFilter Filter { get; private set; }

        public Medianamik2NodeDataSource(NodeFilter pFilter)
        {
            Filter = pFilter;
        }

        public override IEnumerable<Node> GetNodes()
        {
            return NodeManager.GetNodes<Node>(Filter);
        }

        public override Record GetRecord(Node n)
        {
            return new Medianamik2RecordAdapter(n);
        }
             
    }
}
